"use strict";
// console.log(DPlayer)
var dp = new DPlayer({
    container: document.getElementById('dplayer'),
    // hotkey: false,
    loop: true,
    volume: 0,
    video: {
        url: '../img/item6/video.mp4',
        pic: '../img/item6/poster.jpg'
    }
});
var video = document.querySelector('#dplayer .dplayer-video');
// 隐藏控制栏
document.querySelector('.dplayer-controller').style.display = 'none';
document.querySelector('.dplayer-controller-mask').style.display = 'none';
// 静音
video.muted = true;
console.dir(video);
// 自动播放
video.autoplay = 'autoplay';
// 播放 和 暂停
document.querySelector('.btn .left-btn').onclick = function () {
    video.muted = false;
    dp.play();
};
document.querySelector('.btn .right-btn').onclick = function () {
    dp.pause();
};
